[%# The contents of this file are subject to the Mozilla Public
  # License Version 1.1 (the "License"); you may not use this file
  # except in compliance with the License. You may obtain a copy of
  # the License at http://www.mozilla.org/MPL/
  #
  # Software distributed under the License is distributed on an "AS
  # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  # implied. See the License for the specific language governing
  # rights and limitations under the License.
  #
  # The Original Code is the Bugzilla Bug Tracking System.
  #
  # Contributor(s): Frédéric Buclin <LpSolit@gmail.com>
  #%]

[%# INTERFACE:
  # token: random string used to authenticate the transaction.
  # token_ts: creation date of the token.
  # email: email address of the new account.
  #%]

[% PROCESS global/variables.none.tmpl %]

[% expiration_ts = token_ts + (constants.MAX_TOKEN_AGE * 86400) %]
From: [% Param('mailfrom') %]
To: [% email %]
Subject: [% terms.Bugzilla %]: confirm account creation
X-Bugzilla-Type: admin

[%+ terms.Bugzilla %] has received a request to create a user account
using your email address ([% email %]).

To continue creating an account using this email address, visit the 
following link by [%+ time2str("%B %o, %Y at %H:%M %Z", expiration_ts) %]:

[%+ urlbase %]token.cgi?t=[% token FILTER url_quote %]&a=request_new_account

If you did not receive this email before [%+ time2str("%B %o, %Y at %H:%M %Z", expiration_ts) %] or
you wish to create an account using a different email address you can begin
again by going to:

[%+ urlbase %]createaccount.cgi

[% IF Param('createemailregexp') == '.*' && Param('emailsuffix') == '' %]
PRIVACY NOTICE: [% terms.Bugzilla %] is an open [% terms.bug %] tracking system. Activity on most
[%+ terms.bugs %], including email addresses, will be visible to the public. We recommend
using a secondary account or free web email service (such as Gmail, Yahoo,
Hotmail, or similar) to avoid receiving spam at your primary email address.
[% END %]

If you do not wish to create an account, or if this request was made in
error you can do nothing or visit the following link:

[%+ urlbase %]token.cgi?t=[% token FILTER url_quote %]&a=cancel_new_account

If the above links do not work, or you have any other issues regarding
your account, please contact administration at [% Param('maintainer') %].
